To generate Figure 2 in the paper, do the following:
1. run 'gen_grid.m'
2. run 'plot_topk.m'
